package object;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.FindBys;
import utility.BasePage;

import java.net.URLDecoder;

/**
 * Created by 000001159 on 2016/12/20.
 */
public class LeftPage extends BasePage {



    /*
    * 第一级主菜单定位
    * */
    @FindBy(xpath= "//span[text()='我的工作台']")
    public WebElement myWorkPlace;

    @FindBy(xpath= "//span[text()='组织机构管理']")
    public WebElement managerOrg;

    @FindBy(xpath= "//span[text()='客户管理']")
    public WebElement managerCustomer;

    @FindBy(xpath= "//span[text()='业务管理]")
    public WebElement managerBusi;

    @FindBy(xpath= "//span[text()='工作流管理']")
    public WebElement managerWorkflow;

    @FindBy(xpath= "//span[text()='资产管理']")
    public WebElement managerAsse;

    @FindBy(xpath= "//span[text()='合同管理']")
    public WebElement managerContra;






    /*
    * 第二级菜单定位
    * */

    /*
    * 工作台下的菜单*/
    @FindBy(xpath = "//a[text()='待办事务']")
    public  WebElement taskUlous;
    @FindBy(xpath = "//a[text()='任务领取']")
    public  WebElement forTask;

    /*
    * 组织机构管理*/

    @FindBy(xpath = "//a[text()='部门管理']")
    public  WebElement manageDepart;
    @FindBy(xpath = "//a[text()='用户管理']")
    public  WebElement manageUser;
    @FindBy(xpath = "//a[text()='角色管理']")
    public  WebElement manageRoles;

    /*
    * 客户管理*/
    @FindBy(xpath = "//a[text()='企业客户信息录入']")
    public  WebElement inputFirmCustInfo;
    @FindBy(xpath = "//a[text()='个人客户信息录入']")
    public  WebElement inputPersonCustInfo;
    @FindBy(xpath = "//a[text()='客户信息查询']")
    public  WebElement selectCustInfo;
    @FindBy(xpath = "//a[text()='开户绑卡查询']")
    public  WebElement selectAccount;


    /*
    * 业务管理*/
    @FindBy(xpath = "//a[text()='个人信用贷款申请']")
    public WebElement personApply;


    /*
    * 工作流管理*/
    @FindBy(xpath = "//a[text()='待处理流程任务']")
    public WebElement forTasking;
    @FindBy(xpath = "//a[text()='已处理流程任务']")
    public WebElement haveMakeTask;
    @FindBy(xpath = "//a[text()='已结束流程任务']")
    public WebElement finshTask;


    /*
    * 资产管理*/
    @FindBy(xpath = "//a[text()='车辆信息录入']")
    public WebElement inputVehicleInfo;
    @FindBy(xpath = "//a[text()='资产信息查询']")
    public WebElement selectAsset;
    @FindBy(xpath = "//a[text()='房产信息录入']")
    public WebElement inputHouseInfo;
    /*
    * 合同管理*/
    @FindBy(xpath = "//a[text()='合同查询']")
    public WebElement selectContract;
    @FindBy(xpath = "//a[text()='流程任务查询']")
    public WebElement selectTask;


    public LeftPage(WebDriver driver) {
        super(driver);
    }
}
